/* Label Designer Styles moved from template */
.designer-container {
  height: calc(100vh - 120px);
  display: flex;
}

.designer-sidebar {
  width: 320px;
  background: #f8f9fa;
  border-right: 1px solid #dee2e6;
  overflow-y: auto;
}

.designer-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.designer-toolbar {
  background: white;
  border-bottom: 1px solid #dee2e6;
  padding: 15px 20px;
}

.designer-canvas {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  position: relative;
}

.config-section {
  border-bottom: 1px solid #dee2e6;
  padding: 20px;
}

.config-section:last-child { border-bottom: none; }
.config-section h6 { margin-bottom: 15px; color: #495057; font-weight: 600; }

.field-item {
  padding: 12px;
  margin: 8px 0;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.field-item:hover { background: #e3f2fd; border-color: #2196f3; transform: translateY(-1px); }
.field-item.selected { background: #2196f3; color: white; border-color: #2196f3; }
.field-item .field-info { flex: 1; }
.field-item .field-type { font-size: 0.75rem; opacity: 0.8; margin-top: 2px; }
.field-item .field-actions { display: flex; gap: 5px; }

.label-preview {
  background: white;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  position: relative;
  margin: 20px;
}

.label-canvas { background: white; border: 1px solid #ccc; position: relative; overflow: hidden; }
.size-indicator { position: absolute; top: -25px; left: 0; font-size: 0.75rem; color: #666; background: #fff; padding: 2px 6px; border-radius: 3px; border: 1px solid #ddd; }

.field-config-panel { background: #fff; border: 1px solid #dee2e6; border-radius: 6px; padding: 15px; margin: 10px 0; display: none; }
.field-config-panel.active { display: block; }

.field-list { max-height: 300px; overflow-y: auto; }
.selected-fields { min-height: 200px; border: 2px dashed #dee2e6; border-radius: 6px; padding: 15px; background: #fafafa; }
.selected-field-item { background: white; border: 1px solid #dee2e6; border-radius: 4px; padding: 10px; margin: 5px 0; display: flex; justify-content: between; align-items: center; }
.selected-field-item .field-controls { display: flex; gap: 10px; align-items: center; }

.btn-field-action { padding: 4px 8px; font-size: 0.75rem; border: none; border-radius: 3px; cursor: pointer; }
.btn-move-up { background: #28a745; color: white; }
.btn-move-down { background: #17a2b8; color: white; }
.btn-config { background: #ffc107; color: #212529; }
.btn-remove { background: #dc3545; color: white; }

.label-size-selector { display: flex; gap: 10px; flex-wrap: wrap; }
.size-option { padding: 8px 12px; border: 2px solid #dee2e6; border-radius: 6px; cursor: pointer; transition: all 0.2s; text-align: center; min-width: 60px; }
.size-option:hover { border-color: #2196f3; background: #e3f2fd; }
.size-option.selected { border-color: #2196f3; background: #2196f3; color: white; }

.preview-controls { display: flex; gap: 10px; align-items: center; margin-bottom: 15px; }
.custom-data-input { background: #f8f9fa; border-radius: 6px; padding: 15px; margin: 10px 0; }
